Fixed tests
authorKalita Alexey <kalita.alexey@outlook.com>
Thu, 9 Feb 2017 18:20:56 +0000 (21:20 +0300)
committerKalita Alexey <kalita.alexey@outlook.com>
Thu, 9 Feb 2017 18:20:56 +0000 (21:20 +0300)
tests/metadata.rs
tests/read-manifest.rs

index 83fb7038e51356b364dd2492e666f7722e1217dd..07dc4bbec4d7875754ccebf50a38c1f05c7bd2e7 100644 (file)
@@ -274,7 +274,7 @@ version = "0.1.0"
 
 [[example]]
 name = "ex"
-crate-type = ["staticlib"]
+crate-type = ["rlib", "dylib"]
             "#);
 
     assert_that(p.cargo_process("metadata"), execs().with_json(r#"
@@ -298,7 +298,7 @@ crate-type = ["staticlib"]
                     },
                     {
                         "kind": [ "example" ],
-                        "crate_types": [ "staticlib" ],
+                        "crate_types": [ "rlib", "dylib" ],
                         "name": "ex",
                         "src_path": "[..][/]foo[/]examples[/]ex.rs"
                     }
index ab29399a5608367ed18eadd1bd45fa9a5ab94b27..f656ab2108cde8afc7bfb3770697f4c3f38618da 100644 (file)
@@ -16,6 +16,7 @@ static MANIFEST_OUTPUT: &'static str = r#"
     "dependencies":[],
     "targets":[{
         "kind":["bin"],
+        "crate_types":["bin"],
         "name":"foo",
         "src_path":"[..][/]foo[/]src[/]foo.rs"
     }],